package cn.qq.xiangmu.test;

import cn.qq.xiangmu.entity.Dog;

import java.sql.SQLOutput;

public class Demo02 {
    public static void main(String[] args) {
        Dog dog1=new Dog("汪汪",60,40,"牧羊犬");
        Dog dog2=new Dog("汪汪",60,40,"牧羊犬");
        System.out.println(dog1.equals(dog2));
        System.out.println(dog1.getClass().toString());
    }
}
